#!/bin/bash

INPUT_FOLDER=original/
OUTPUT_FOLDER=comp/

echo '----------------------------------------------------'
echo 'The files inside the folder' $INPUT_FOLDER 'will be compress'
echo 'The compress files will be put on' $OUTPUT_FOLDER
echo '----------------------------------------------------'

for i in `ls $INPUT_FOLDER`; do
	output=$(echo $i | sed -e 's/.bmp/.comp/')
	echo $i '->' $output
	./BMPcompress -c -i $INPUT_FOLDER$i -o $OUTPUT_FOLDER$output
	echo '----------------------------------------------------'
done
